package com.hejing.annotation注解.JUnit单元测试;

import org.junit.Test;

import java.util.Scanner;

/**
 * ClassName: JUnitTest
 * Package: com.hejing.annotation注解.JUnit单元测试
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-04-04 9:39
 * @Version: 1.0
 */
public class JUnitTest {  // 单元测试类

    // 需要导入 JUnit  library

    // 单元测试方法
    @Test
    public void test01(){
        System.out.println("hello01");
    }

    @Test
    public void test02() {
        System.out.println("hello02");
    }

    @Test
    public void test03(){
        Scanner scan = new Scanner(System.in);
        System.out.print("请输入一个数值: ");
        int a = scan.nextInt();
    }

    @Test
    public void test04(){
        System.out.println("自动生成单元测试方法");
    }
}
















